{% extends 'userCenterTemplate.html' %}

{% load staticfiles %}

{% block title %}个人中心 - 慕学在线网{% endblock %}

{% block userCenterTag %}我收藏的教师{% endblock %}

{% block right %}
<div class="right" >
    <div class="personal_des Releasecont">
        <div class="head">
            <h1>我的收藏</h1>
        </div>
    </div>
    <div class="personal_des permessage">
        <div class="head">
            <ul class="tab_header messagehead">
                <li {% ifequal request.path|slice:"24" "/users/userCenterFavOrg/" %}class="active"{% endifequal %}>
                    <a href="{% url 'users:userCenterFavOrg' %}">课程机构</a>
                </li>
                <li {% ifequal request.path|slice:"28" "/users/userCenterFavTeacher/" %}class="active"{% endifequal %}>
                    <a href="{% url 'users:userCenterFavTeacher' %}">授课教师 </a>
                </li>
                <li {% ifequal request.path|slice:"27" "/users/userCenterFavCourse/" %}class="active"{% endifequal %}>
                    <a href="{% url 'users:userCenterFavCourse' %}">公开课程</a>
                </li>
            </ul>
        </div>
        <div class="messagelist">
        {% for teacher in teachers %}
            <div class=" butler_list butler-fav-box">
                <dl class="des users">
                    <dt>
                        <a href="{% url 'orgs:teacherDetail' teacher.id %}">
                            <img width="100" height="100" src="{{ MEDIA_URL }}{{ teacher.images }}"/>
                        </a>
                    </dt>
                    <dd>
                        <h1>
                            <a href="{% url 'orgs:teacherDetail' teacher.id %}">
                                {{ teacher.name }}<span class="key">认证教师</span>
                            </a>
                        </h1>
                        <ul class="cont clearfix">
                            <li class="time">工作年限：<span>{{ teacher.workYear }}年</span></li>
                            <li class="c7">课程数：<span>{{ teacher.getTeacherCourses|length }}</span></li>
                        </ul>
                        <ul class="cont clearfix">
                            <li class="time">工作公司：<span>{{ teacher.workCompany }}</span></li>
                            <li class="c7">公司职位：<span>{{ teacher.workPosition }}</span></li>
                        </ul>
                    </dd>
                    <div class="delete jsDeleteFav_teacher" data-favid="1"></div>
                </dl>
            </div>
        {% endfor %}
        </div>
    </div>
</div>
{% endblock %}

